package com.snow.useviewdemo.function.kotlintest

/**
 * Created by zhyt
 * Date: 2022/9/30
 * Describe:
 */
class KotlinGetterAndSetter {
    var userName: String? = null
        get() {
            if (field == "zhangsan") {
                return "wangwu"
            }
            return "lisi"
        }
    var userAge: Int = 0
    var userSex: Int = 0
}